home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97a.txt
/
000051_icon-group-sender _Thu Feb 27 19:43:43 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Received: by cheltenham.cs.arizona.edu; Fri, 28 Feb 1997 08:56:53 MST
To: icon-group@cs.arizona.edu
Date: Thu, 27 Feb 1997 19:43:43 -0800
From: Stuart Robinson <srobinso@reed.edu>
Message-Id: <Pine.OSF.3.95.970227192847.26891A-100000@amon.reed.edu>
Organization: Reed College, Portland, Oregon
Sender: icon-group-request@cs.arizona.edu
Subject: Help with Program
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1053
Hello. I am trying to do some text analysis with Icon. Because I am new
to the language (and to programming in general), I am not sure how to
proceed.
Let me describe the problem and perhaps some generous soul will lend a
hand.
I have a number of texts each line of which has been coded for three types
of information. Each line of the text will be assigned a number and a
code for two categories. The numbers are just whole numbers (raning from 1
to 20 or so) and each category has four members (say, ABCD and WXYZ).
Here is an example text:
1 A X
1 A Y
1 B Y
2 B Y
Note that some successive lines share an index number (as in lines 1 and
2 and 2 and 3). When that is the case, I would like the program to
output the members of each category for the matched lines, as below:
1-2 AA XY
2-3 AB YY
That is it. There are some additional complications, but I think that I
can solve those at a later date. At the moment, this sort of
rough-and-ready analysis is all I need.
Any suggestions? Thanks in advance.
--Stuart <srobinso@reed.edu>